package com.wpp.service.impl;

import com.wpp.dao.DeptDao;
import com.wpp.pojo.Department;
import com.wpp.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptDao deptDao;

    @Override
    public List<Department> findDeptAll() {
        return deptDao.findDeptAll();
    }

}
